package cn.itcast.jdbc.dao;

import java.util.Date;

import cn.itcast.jdbc.domain.User;

/**
 * 
 * 2008-12-6
 * 
 * @author <a href="mailto:liyongibm@gmail.com">liyong</a>
 * 
 */
public class UserDaoTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		UserDao userDao = DaoFactory.getInstance().getUserDao();
		// System.out.println(userDao);
		//		
		 User user = new User();
		 user.setBirthday(new Date());
		 user.setName("dao name1");
		 user.setMoney(1000.0f);

		 userDao.addUser(user);

		// User u = userDao.findUser(user.getName(), null);
		// System.out.println(u.getId());

//		User u = userDao.getUser(2);
//		u.setMoney(20000.1f);
//		userDao.update(u);

//		 User u1 = userDao.getUser(4);
//		 userDao.delete(u1);

	}

}
